package manage.util;

/**
 * @author: create by  Raphaelkxy
 * @version: v1.0
 * @description: entity
 * @date:2019/6/17
 */
public class Result {
    private  boolean flag;
    private Integer code;
    private String message;
    private Long total;
    private Object data;


    public Result(boolean flag, Integer code, String message, Long total, Object data) {
        this.flag = flag;
        this.code = code;
        this.message = message;
        this.total = total;
        this.data = data;
    }

    public Result() {
    }

    public Result(boolean flag, Integer code, String message) {
        this.flag = flag;
        this.code = code;
        this.message = message;
    }

    public Result(boolean flag, Integer code, String message, Object data) {
        this.flag = flag;
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
